<template>
	<view class="">

		<view class="">
			<u-image mode="widthFix" width='100%' src="/static/images/imgs/nursing.jpg"></u-image>
		</view>

		<view class="section-card">
			<view class="pad-10 thime-color first-title color-white"> <strong>内容介绍</strong></view>
			<view class="call-padding">
				<view class="thime-color color-white text-center title pad-5 radius-5">
					肌肉/皮下注射
				</view>
				<view class="value">
					执行护士根据医嘱和患者需求提供相关护理技术服务，将摇曳注入肌肉组织或皮下组织，达到治疗疾病的目的。
				</view>
			</view>
		</view>

		<view class="section-card">
			<view class="pad-10 thime-color first-title color-white"> <strong>服务信息</strong></view>
			<view class="call-padding">
				<view class="top-box">
					<view class="">
						皮下注射
					</view>
					<view class="top-box table-tr text-right pad-5-0" style="color: #FBAE70">
						<view class="price-box">
							¥175.5
						</view>
						<view class="item-box2">
							<u-radio-group v-model='typeVal'>
							    <u-radio active-color='rgb(53, 166, 175)'  name='皮下注射'  @change="radioChange"></u-radio>
							</u-radio-group>
						</view>
					</view>
					
				</view>
				
				<view class="value top-box" v-for="(item, i) in nursingItem" :key='i'>
						<view class="table-tr text-left pad-5-0">{{item.name}}</view>
						<view class="table-tr text-right pad-5-0" style="color: #FBAE70" v-if='item.price'>¥
							{{item.price}}
						</view>
						
				</view>
			</view>

			<view class="call-padding">
				<view class="top-box">
					<view class="">
						肌肉注射
					</view>
					<view class="top-box table-tr text-right pad-5-0" style="color: #FBAE70">
						<view class="price-box">
							¥175.5
						</view>
						<view class="item-box2">
							<u-radio-group v-model='typeVal'>
							    <u-radio active-color='rgb(53, 166, 175)'   name='肌肉注射'  @change="radioChange"></u-radio>
							</u-radio-group>
						</view>
					</view>
					
				</view>
				<view class="value top-box" v-for="(item, i) in nursingItem" :key='i'>
						<view class="table-tr text-left pad-5-0">{{item.name}}</view>
						<view class="table-tr text-right pad-5-0" style="color: #FBAE70" v-if='item.price'>¥
							{{item.price}}
						</view>
						
				</view>
			</view>
		</view>
		<button class="btn-confirm" @click="goToReserv()">预约服务</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				typeVal:'皮下注射',
				nursingItem: [{
					name: '家庭护理出诊费(含保险)',
					price: '128.00'
				}, {
					name: '交通费',
					price: '30.00'
				}, {
					name: '耗材费',
					price: '7.50'
				}, ]

			}
		},
		methods: {
			goToReserv() {
				console.log(123123)
				uni.navigateTo({
					url: '/pages/Home/ServeComposite/NursingCheckIn'
				})
				
			},
			radioChange(e){
				console.log(e)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.section-card {
		background: #fff;
		margin: 25rpx;
		box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);

		border: 1px solid #e6e6e6;
		border-radius: 5px;

	}
	.top-box{
		display: flex;
		justify-content: space-between;
	}
	.item-box1{
		display: flex;
		flex-direction: column ;
	}

	.call-padding {
		padding: 24rpx 32rpx 18rpx 32rpx;
	}
	.item-box2{
		
		position: relative;
		left: 20px;
	}
	.price-box{
		position: relative;
		left: 15px;
	}

	.title {
		margin-top: 10px;
		margin-bottom: 10px;
		font-size: 15px;
		width: 240rpx
	}

	.value {
		color: #888;
		font-size: 28rpx;
	}

	.thime-color {
		background-color: rgb(53, 166, 175) ;
	}

	.first-title {
		border-top-right-radius: 5px;
		border-top-left-radius: 5px;
	}

	.btn-color {
		background-color: #A4F5FC;
	}

	.line-btn {
		background: #fff;
		color: #1ec6e6;
		border: 1rpx solid #1ec6e6;
		text-align: center;
	}

	.thime-btn {
		margin-top: 20px;
		width: 40%;
	}
</style>